
import java.io.*;
import java.util.*;

/**
 * 
 */
public class Client {
    public static void main(String args[]) throws Exception {
        System.out.println("Starts Simple factory mode!");
        TV tv1;
        tv1=TVFactory.produceTV("Haier");
        tv1.display();
     /*   输出：
     The TV factory is producing Haier televisions!
     Haier TV is displaying!*/

        TV tv2;
        tv2=TVFactory.produceTV("Hisense");
        tv2.display();
     /*   输出：
     The TV factory is producing Hisense televisions!
     Hisense TV is displaying!*/
    }
}